﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
    public class RuleObjectBUS
    {
        RuleObjectDAO RuleDAO = new RuleObjectDAO();

        public bool InsertRuleOfGroup(int ID)
        {
            return RuleDAO.InsertRuleOfGroup(ID);
        }

        public bool CheckPermission(int groupID, int RuleID)
        {
            return RuleDAO.CheckPermission(groupID, RuleID);
        }

        public List<RuleObjectDTO> GetListRuleObject(int id)
        {
            return RuleDAO.GetListRuleObject(id);
        }

        public bool UpdateRuleObject(List<RuleObjectDTO> listRule)
        {
            return RuleDAO.UpdateRuleObject(listRule);
        }
    }
}
